﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace ProjectSem40701.Util
{
    public class GetCorrectAnswers
    {
        /// <summary>
        /// Phuong thuc tra ve mot DataTable chua cac cau tra loi dung dua theo ma cau hoi
        /// </summary>
        /// <param name="questionID">Ma cau hoi</param>
        /// <returns>Mot DataTable chua cac cau tra loi dung</returns>
        public DataTable getCorrectAns(int questionID)
        {
            MainDataset.AnswerTableAdapters.tbl_Answer_Select_AnswerCorrect_By_QuestionIDTableAdapter       dpAnswCorrect =
                       new MainDataset.AnswerTableAdapters.tbl_Answer_Select_AnswerCorrect_By_QuestionIDTableAdapter();
            DataTable dttblAnswCorrect = dpAnswCorrect.Get_tbl_Answer_Select_AnswerCorrect_By_QuestionID(questionID);
            return dttblAnswCorrect;
        }
    }
}
